home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIRadioButtonGroups.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  15KB  |  347 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIRadioButtonGroups.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIRadioButtonGroup_h
  11. #define SOM_HIRadioButtonGroup_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <HIRadioButtonGroupTypes.h>
  18.  
  19. #include <som.h>
  20.  
  21. /*
  22.  * -- This emitter treats Method Tokens as Thunks by default.
  23.  * -- Use the sc modifier "nothunks" to change this default
  24.  */
  25. #undef somresolve_
  26. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  27.  
  28. /*
  29.  * Define the class name as an object type
  30.  */
  31. #ifndef HIRadioButtonGroup
  32. #define HIRadioButtonGroup SOMObject
  33. #endif
  34. #include <HIPanels.h>
  35.  
  36. /*
  37.  * Start of user-defined types:
  38.  */
  39. #ifndef SOMClass
  40.     #define SOMClass SOMObject
  41. #endif /* SOMClass */
  42. #ifndef SOMObject
  43.     #define SOMObject SOMObject
  44. #endif /* SOMObject */
  45. #ifndef HIWindow
  46.     #define HIWindow SOMObject
  47. #endif /* HIWindow */
  48. #ifndef HIEmbeddingPanel
  49.     #define HIEmbeddingPanel SOMObject
  50. #endif /* HIEmbeddingPanel */
  51. #ifndef HIRadioButton
  52.     #define HIRadioButton SOMObject
  53. #endif /* HIRadioButton */
  54.  
  55. /*
  56.  * End of user-defined types.
  57.  */
  58.  
  59. #define HIRadioButtonGroup_MajorVersion 0
  60. #define HIRadioButtonGroup_MinorVersion 0
  61.  
  62. /*
  63.  * External name shortening if required
  64.  */
  65. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  66. #define HIRadioButtonGroupClassData d
  67. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  68. /*--------------Migration------------*/
  69.  
  70. #ifdef OLDIBMSOMAPISUPPORT
  71. #define HIRadioButtonGroup_classObj somNewClassReference(HIRadioButtonGroup)
  72. #define _HIRadioButtonGroup HIRadioButtonGroup_classObj
  73. #define HIRadioButtonGroupCClassData HIRadioButtonGroupClassData
  74. #define HIRadioButtonGroupNewClass(major,minor) somNewVersionedClassReference(HIRadioButtonGroup,major,minor)
  75. #endif
  76.  
  77. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  78. #define HIRadioButtonGroupMetaClass SOMClass
  79.  
  80. #if PRAGMA_ALIGN_SUPPORTED
  81. #  pragma options align=power
  82. #endif
  83.  
  84. /*
  85.  * Declare the class data structure
  86.  */
  87. SOMEXTERN struct HIRadioButtonGroupClassDataStructure {
  88. #ifdef OLDIBMSOMAPISUPPORT
  89.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  90. #else
  91.     long zero;
  92. #endif
  93.     somStaticClassInfo *sci;
  94.     somDToken        instanceDataToken;
  95.     long reserved [3];
  96.     somMToken InitRadioButtonGroup;
  97.     somMToken GetRadioButtonCount;
  98.     somMToken GetRadioButton;
  99.     somMToken AddRadioButton;
  100.     somMToken DeleteRadioButton;
  101.     somMToken SelectRadioButton;
  102.     somMToken GetSelectedRadioButton;
  103. } SOMDLINK HIRadioButtonGroupClassData;
  104.  
  105. #if PRAGMA_ALIGN_SUPPORTED
  106. #  pragma options align=reset
  107. #endif
  108.  
  109. #if !defined(HIRadioButtonGroup_Class_Source) && !defined(SOM_Module_hiradiobuttongroups_Source)
  110. #if PRAGMA_IMPORT_SUPPORTED
  111. #pragma import list HIRadioButtonGroupClassData
  112. #endif
  113. #endif
  114.  
  115.  
  116. /*
  117.  * New macro for HIRadioButtonGroup
  118.  */
  119. #define HIRadioButtonGroupNew() somNewObject(HIRadioButtonGroup)
  120.  
  121. /*
  122.  * New Method: InitRadioButtonGroup
  123.  */
  124. typedef OSStatus   (SOMLINK *somTD_HIRadioButtonGroup_InitRadioButtonGroup)(HIRadioButtonGroup *somSelf, Environment *ev,
  125.         RefLabel* identifier,
  126.         HIWindow* window,
  127.         Point* anchor,
  128.         SInt16 width,
  129.         ItemCount numRadioButtons);
  130. #define somMD_HIRadioButtonGroup_InitRadioButtonGroup "::HIRadioButtonGroup::InitRadioButtonGroup"
  131. #define HIRadioButtonGroup_InitRadioButtonGroup(somSelf,ev,identifier,window,anchor,width,numRadioButtons) \
  132.     (SOM_Resolve(somSelf, HIRadioButtonGroup, InitRadioButtonGroup) \
  133.     (somSelf,ev,identifier,window,anchor,width,numRadioButtons))
  134. #ifndef SOMGD_InitRadioButtonGroup
  135.     #if defined _InitRadioButtonGroup || defined __InitRadioButtonGroup
  136.         #undef _InitRadioButtonGroup
  137.         #undef __InitRadioButtonGroup
  138.         #define SOMGD_InitRadioButtonGroup 1
  139.     #else
  140.         #define _InitRadioButtonGroup HIRadioButtonGroup_InitRadioButtonGroup
  141.     #endif /* _InitRadioButtonGroup */
  142. #endif /* SOMGD_InitRadioButtonGroup */
  143.  
  144. /*
  145.  * New Method: GetRadioButtonCount
  146.  */
  147. typedef ItemCount   (SOMLINK *somTD_HIRadioButtonGroup_GetRadioButtonCount)(HIRadioButtonGroup *somSelf, Environment *ev);
  148. #define somMD_HIRadioButtonGroup_GetRadioButtonCount "::HIRadioButtonGroup::GetRadioButtonCount"
  149. #define HIRadioButtonGroup_GetRadioButtonCount(somSelf,ev) \
  150.     (SOM_Resolve(somSelf, HIRadioButtonGroup, GetRadioButtonCount) \
  151.     (somSelf,ev))
  152. #ifndef SOMGD_GetRadioButtonCount
  153.     #if defined _GetRadioButtonCount || defined __GetRadioButtonCount
  154.         #undef _GetRadioButtonCount
  155.         #undef __GetRadioButtonCount
  156.         #define SOMGD_GetRadioButtonCount 1
  157.     #else
  158.         #define _GetRadioButtonCount HIRadioButtonGroup_GetRadioButtonCount
  159.     #endif /* _GetRadioButtonCount */
  160. #endif /* SOMGD_GetRadioButtonCount */
  161.  
  162. /*
  163.  * New Method: GetRadioButton
  164.  */
  165. typedef HIRadioButton*   (SOMLINK *somTD_HIRadioButtonGroup_GetRadioButton)(HIRadioButtonGroup *somSelf, Environment *ev,
  166.         HIRadioButtonIndex radioButtonIndex);
  167. #define somMD_HIRadioButtonGroup_GetRadioButton "::HIRadioButtonGroup::GetRadioButton"
  168. #define HIRadioButtonGroup_GetRadioButton(somSelf,ev,radioButtonIndex) \
  169.     (SOM_Resolve(somSelf, HIRadioButtonGroup, GetRadioButton) \
  170.     (somSelf,ev,radioButtonIndex))
  171. #ifndef SOMGD_GetRadioButton
  172.     #if defined _GetRadioButton || defined __GetRadioButton
  173.         #undef _GetRadioButton
  174.         #undef __GetRadioButton
  175.         #define SOMGD_GetRadioButton 1
  176.     #else
  177.         #define _GetRadioButton HIRadioButtonGroup_GetRadioButton
  178.     #endif /* _GetRadioButton */
  179. #endif /* SOMGD_GetRadioButton */
  180.  
  181. /*
  182.  * New Method: AddRadioButton
  183.  */
  184. typedef HIRadioButton*   (SOMLINK *somTD_HIRadioButtonGroup_AddRadioButton)(HIRadioButtonGroup *somSelf, Environment *ev,
  185.         HIRadioButtonIndex insertBeforeIndex);
  186. #define somMD_HIRadioButtonGroup_AddRadioButton "::HIRadioButtonGroup::AddRadioButton"
  187. #define HIRadioButtonGroup_AddRadioButton(somSelf,ev,insertBeforeIndex) \
  188.     (SOM_Resolve(somSelf, HIRadioButtonGroup, AddRadioButton) \
  189.     (somSelf,ev,insertBeforeIndex))
  190. #ifndef SOMGD_AddRadioButton
  191.     #if defined _AddRadioButton || defined __AddRadioButton
  192.         #undef _AddRadioButton
  193.         #undef __AddRadioButton
  194.         #define SOMGD_AddRadioButton 1
  195.     #else
  196.         #define _AddRadioButton HIRadioButtonGroup_AddRadioButton
  197.     #endif /* _AddRadioButton */
  198. #endif /* SOMGD_AddRadioButton */
  199.  
  200. /*
  201.  * New Method: DeleteRadioButton
  202.  */
  203. typedef OSStatus   (SOMLINK *somTD_HIRadioButtonGroup_DeleteRadioButton)(HIRadioButtonGroup *somSelf, Environment *ev,
  204.         HIRadioButtonIndex indexToDelete);
  205. #define somMD_HIRadioButtonGroup_DeleteRadioButton "::HIRadioButtonGroup::DeleteRadioButton"
  206. #define HIRadioButtonGroup_DeleteRadioButton(somSelf,ev,indexToDelete) \
  207.     (SOM_Resolve(somSelf, HIRadioButtonGroup, DeleteRadioButton) \
  208.     (somSelf,ev,indexToDelete))
  209. #ifndef SOMGD_DeleteRadioButton
  210.     #if defined _DeleteRadioButton || defined __DeleteRadioButton
  211.         #undef _DeleteRadioButton
  212.         #undef __DeleteRadioButton
  213.         #define SOMGD_DeleteRadioButton 1
  214.     #else
  215.         #define _DeleteRadioButton HIRadioButtonGroup_DeleteRadioButton
  216.     #endif /* _DeleteRadioButton */
  217. #endif /* SOMGD_DeleteRadioButton */
  218.  
  219. /*
  220.  * New Method: SelectRadioButton
  221.  */
  222. typedef void   (SOMLINK *somTD_HIRadioButtonGroup_SelectRadioButton)(HIRadioButtonGroup *somSelf, Environment *ev,
  223.         HIRadioButtonIndex radioButtonIndex);
  224. #define somMD_HIRadioButtonGroup_SelectRadioButton "::HIRadioButtonGroup::SelectRadioButton"
  225. #define HIRadioButtonGroup_SelectRadioButton(somSelf,ev,radioButtonIndex) \
  226.     (SOM_Resolve(somSelf, HIRadioButtonGroup, SelectRadioButton) \
  227.     (somSelf,ev,radioButtonIndex))
  228. #ifndef SOMGD_SelectRadioButton
  229.     #if defined _SelectRadioButton || defined __SelectRadioButton
  230.         #undef _SelectRadioButton
  231.         #undef __SelectRadioButton
  232.         #define SOMGD_SelectRadioButton 1
  233.     #else
  234.         #define _SelectRadioButton HIRadioButtonGroup_SelectRadioButton
  235.     #endif /* _SelectRadioButton */
  236. #endif /* SOMGD_SelectRadioButton */
  237.  
  238. /*
  239.  * New Method: GetSelectedRadioButton
  240.  */
  241. typedef HIRadioButtonIndex   (SOMLINK *somTD_HIRadioButtonGroup_GetSelectedRadioButton)(HIRadioButtonGroup *somSelf, Environment *ev);
  242. #define somMD_HIRadioButtonGroup_GetSelectedRadioButton "::HIRadioButtonGroup::GetSelectedRadioButton"
  243. #define HIRadioButtonGroup_GetSelectedRadioButton(somSelf,ev) \
  244.     (SOM_Resolve(somSelf, HIRadioButtonGroup, GetSelectedRadioButton) \
  245.     (somSelf,ev))
  246. #ifndef SOMGD_GetSelectedRadioButton
  247.     #if defined _GetSelectedRadioButton || defined __GetSelectedRadioButton
  248.         #undef _GetSelectedRadioButton
  249.         #undef __GetSelectedRadioButton
  250.         #define SOMGD_GetSelectedRadioButton 1
  251.     #else
  252.         #define _GetSelectedRadioButton HIRadioButtonGroup_GetSelectedRadioButton
  253.     #endif /* _GetSelectedRadioButton */
  254. #endif /* SOMGD_GetSelectedRadioButton */
  255. #ifndef SOM_DONT_USE_INHERITED_MACROS
  256. #define HIRadioButtonGroup_GetEmbeddingParent HIPanel_GetEmbeddingParent
  257. #define HIRadioButtonGroup_InitPanel HIPanel_InitPanel
  258. #define HIRadioButtonGroup_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  259. #define HIRadioButtonGroup_HasValidContent HIPanel_HasValidContent
  260. #define HIRadioButtonGroup_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  261. #define HIRadioButtonGroup_GetWindow HIObject_GetWindow
  262. #define HIRadioButtonGroup_GetPort HIObject_GetPort
  263. #define HIRadioButtonGroup_GetRefLabel HIObject_GetRefLabel
  264. #define HIRadioButtonGroup_GetCollection HIObject_GetCollection
  265. #define HIRadioButtonGroup_Init HIObject_Init
  266. #define HIRadioButtonGroup_Terminate HIObject_Terminate
  267. #define HIRadioButtonGroup_Clone HIObject_Clone
  268. #define HIRadioButtonGroup_Release HIObject_Release
  269. #define HIRadioButtonGroup_GetOwnerCount HIObject_GetOwnerCount
  270. #define HIRadioButtonGroup_InitFromAERecord HIObject_InitFromAERecord
  271. #define HIRadioButtonGroup_WriteToAERecord HIObject_WriteToAERecord
  272. #define HIRadioButtonGroup_CalculateOptimalSize HIObject_CalculateOptimalSize
  273. #define HIRadioButtonGroup_GetBoundingRect HIObject_GetBoundingRect
  274. #define HIRadioButtonGroup_SetBoundingRect HIObject_SetBoundingRect
  275. #define HIRadioButtonGroup_SetPosition HIObject_SetPosition
  276. #define HIRadioButtonGroup_SetSize HIObject_SetSize
  277. #define HIRadioButtonGroup_GetUpdateRect HIObject_GetUpdateRect
  278. #define HIRadioButtonGroup_Enable HIObject_Enable
  279. #define HIRadioButtonGroup_Disable HIObject_Disable
  280. #define HIRadioButtonGroup_IsEnabled HIObject_IsEnabled
  281. #define HIRadioButtonGroup_Show HIObject_Show
  282. #define HIRadioButtonGroup_Hide HIObject_Hide
  283. #define HIRadioButtonGroup_IsVisible HIObject_IsVisible
  284. #define HIRadioButtonGroup_HandleAppleEvent HIObject_HandleAppleEvent
  285. #define HIRadioButtonGroup_HandleActivate HIObject_HandleActivate
  286. #define HIRadioButtonGroup_HandleDeactivate HIObject_HandleDeactivate
  287. #define HIRadioButtonGroup_HandleNavigation HIObject_HandleNavigation
  288. #define HIRadioButtonGroup_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  289. #define HIRadioButtonGroup_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  290. #define HIRadioButtonGroup_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  291. #define HIRadioButtonGroup_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  292. #define HIRadioButtonGroup_TakeUserInputFocus HIObject_TakeUserInputFocus
  293. #define HIRadioButtonGroup_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  294. #define HIRadioButtonGroup_HasUserInputFocus HIObject_HasUserInputFocus
  295. #define HIRadioButtonGroup_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  296. #define HIRadioButtonGroup_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  297. #define HIRadioButtonGroup_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  298. #define HIRadioButtonGroup_SetTitle HIObject_SetTitle
  299. #define HIRadioButtonGroup_GetTitle HIObject_GetTitle
  300. #define HIRadioButtonGroup_Draw HIObject_Draw
  301. #define HIRadioButtonGroup_Erase HIObject_Erase
  302. #define HIRadioButtonGroup_Invalidate HIObject_Invalidate
  303. #define HIRadioButtonGroup_GetDrawingMode HIObject_GetDrawingMode
  304. #define HIRadioButtonGroup_SetDrawingMode HIObject_SetDrawingMode
  305. #define HIRadioButtonGroup_SetBackgroundPattern HIObject_SetBackgroundPattern
  306. #define HIRadioButtonGroup_GetBackgroundPattern HIObject_GetBackgroundPattern
  307. #define HIRadioButtonGroup_Cut HIObject_Cut
  308. #define HIRadioButtonGroup_Copy HIObject_Copy
  309. #define HIRadioButtonGroup_Paste HIObject_Paste
  310. #define HIRadioButtonGroup_Clear HIObject_Clear
  311. #define HIRadioButtonGroup_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  312. #define HIRadioButtonGroup_AddStateChangeCallback HIObject_AddStateChangeCallback
  313. #define HIRadioButtonGroup_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  314. #define HIRadioButtonGroup_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  315. #define HIRadioButtonGroup_GetNewHIObject HIObject_GetNewHIObject
  316. #define HIRadioButtonGroup_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  317. #define HIRadioButtonGroup_DrawContent HIObject_DrawContent
  318. #define HIRadioButtonGroup_EraseContent HIObject_EraseContent
  319. #define HIRadioButtonGroup_TranslatePoint HIObject_TranslatePoint
  320. #define HIRadioButtonGroup_TranslateRect HIObject_TranslateRect
  321. #define HIRadioButtonGroup_StateChanged HIObject_StateChanged
  322. #define HIRadioButtonGroup_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  323. #define HIRadioButtonGroup_Verify HIObject_Verify
  324. #define HIRadioButtonGroup_somInit SOMObject_somInit
  325. #define HIRadioButtonGroup_somUninit SOMObject_somUninit
  326. #define HIRadioButtonGroup_somDuplicateReference SOMObject_somDuplicateReference
  327. #define HIRadioButtonGroup_somCompareReference SOMObject_somCompareReference
  328. #define HIRadioButtonGroup_somRelease SOMObject_somRelease
  329. #define HIRadioButtonGroup_somFree SOMObject_somFree
  330. #define HIRadioButtonGroup_somCanDelete SOMObject_somCanDelete
  331. #define HIRadioButtonGroup_somGetClass SOMObject_somGetClass
  332. #define HIRadioButtonGroup_somGetClassName SOMObject_somGetClassName
  333. #define HIRadioButtonGroup_somGetSize SOMObject_somGetSize
  334. #define HIRadioButtonGroup_somIsA SOMObject_somIsA
  335. #define HIRadioButtonGroup_somRespondsTo SOMObject_somRespondsTo
  336. #define HIRadioButtonGroup_somIsInstanceOf SOMObject_somIsInstanceOf
  337. #define HIRadioButtonGroup_somDispatch SOMObject_somDispatch
  338. #define HIRadioButtonGroup_somClassDispatch SOMObject_somClassDispatch
  339. #define HIRadioButtonGroup_somCastObj SOMObject_somCastObj
  340. #define HIRadioButtonGroup_somResetObj SOMObject_somResetObj
  341. #define HIRadioButtonGroup_somPrintSelf SOMObject_somPrintSelf
  342. #define HIRadioButtonGroup_somDumpSelf SOMObject_somDumpSelf
  343. #define HIRadioButtonGroup_somDumpSelfInt SOMObject_somDumpSelfInt
  344. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  345.  
  346. #endif       /* SOM_HIRadioButtonGroup_h */
  347.